package com.example.onlinefood.mapper;

import com.example.onlinefood.domain.MenuItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuItemMapper {
    List<MenuItem> findByRestaurantId(@Param("restaurantId") Integer restaurantId);
    MenuItem findById(@Param("id") Integer id);
    List<MenuItem> searchByRestaurantAndName(@Param("restaurantId") Integer restaurantId, @Param("keyword") String keyword);
}


